import { post ,postFormData} from '@/request/http'
import store from '@/store'


export  const getAuditUserToList1=({varName,varCode,PageIndexs,PageSizes})=>{
  return   post('/FTKJWLHYPT/base/selectVarieties',{

    Data: {
      Parameters: {
        FTKJWLHYPT: {
          varName,   
          varCode,
          dptId:store.state.user.DPTID_DX_H
        }
      },
      PageIndex: {
        FTKJWLHYPT: PageIndexs
      },
      PageSize: {
        FTKJWLHYPT: PageSizes
      }
    }
  }
  )
}



//添加客户
export const addTmClientDetail1=({varName,varCode,varIsdefault,varIsvalid
})=>{
  return post('/FTKJWLHYPT/base/addVarieties',{
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          varName,
          varCode,
          varIsdefault,
          varIsvalid,
          fltId:store.state.user.FLT_UUID_DX_H,
          dptId:store.state.user.DPTID_DX_H,
          varInsertuser:store.state.user.USR_CODE_DX_H,
        }
      }
    }
  })
}
//删除客户

export const deleteTmClientDetail1=(varId)=>{
  return post('/FTKJWLHYPT/base/delVarieties',{
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          varId
        }
      }
    }
  })
}


//编辑客户

export const editTmClientDetail1=({
  varId,varName,varCode,varIsdefault,varIsvalid
 
})=>{
  return post('/FTKJWLHYPT/base/editVarieties',{
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          varId,
          varName,
          varCode,
          varIsdefault,
          varIsvalid,
          fltId:store.state.user.FLT_UUID_DX_H,
          dptId:store.state.user.DPTID_DX_H,
          varLstupduser:store.state.user.USR_CODE_DX_H,
        }
      }
    }
  })
}



//编辑客户

export const createCode=(pre)=>{
  return post('/FTKJWLHYPT/dropDown/createCode',{
    Data: {
      Parameters: {
        FTKJWLHYPT: {
          pre
        }
      }
    }
  })
}
